package cn.gson.springboot.model.service;

import cn.gson.springboot.model.dao.ProductDetailDao;
import cn.gson.springboot.model.mapper.ProductDetailMapper;
import cn.gson.springboot.model.pojos.ProductDetail;
import cn.gson.springboot.model.pojos.Quotation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductDetailService {
    @Autowired
    ProductDetailMapper proDetailMapper;
    @Autowired
    ProductDetailDao proDetailDao;

    public List<ProductDetail> selectProDetailsByQuoId(Integer quoId){
        return  proDetailMapper.selectProDetailsByQuoId(quoId);
    }

    public List<ProductDetail> selectProDetailsByConId(Integer conId){
        return  proDetailMapper.selectProDetailsByConId(conId);
    }

    public List<ProductDetail> selectProDetailsByPurId(Integer purId){
        return proDetailMapper.selectProDetailsByPurId(purId);
    }

    public List<ProductDetail> selectPurProDetails(Integer value,Integer num,String proName){
        return proDetailMapper.selectPurProDetails(value,num,proName);
    }

}
